//
// Created by 束庆乐 on 2025/1/7.
//
#include "iostream"
#include "vector"
using namespace std;

void printVector(vector<int>& v){
    for(vector<int>::iterator it=v.begin(); it != v.end();it++){
        cout << *it << " ";
    }
    cout << endl;
}

void test(){
    vector<int> v1;
    v1.push_back(10);
    v1.push_back(20);
    v1.push_back(30);
    printVector(v1);

    v1.pop_back();
    printVector(v1);

    v1.insert(v1.begin(),10);
    printVector(v1);

    v1.insert(v1.begin(),2,1000);
    printVector(v1);

    v1.erase(v1.begin());
    printVector(v1);

    v1.erase(v1.begin(),v1.end()-1);
    printVector(v1);
    v1.clear();
    printVector(v1);

}

int main121(){
    test();
    return 0;
}